package com.mkh.st.common.security.service;
import com.mkh.st.admin.api.vo.UserTenantVO;
import lombok.experimental.UtilityClass;

@UtilityClass
public class UserContext {
	private final ThreadLocal<UserTenantVO> userInfo = new InheritableThreadLocal<>();


	public void set(UserTenantVO user) {
		userInfo.set(user);
	}

	public UserTenantVO get() {
		return userInfo.get();
	}

	public void remove() {
		userInfo.remove();
	}
}
